GtkMenuButton: Support popovers
authorMatthias Clasen <mclasen@redhat.com>
Sat, 8 Feb 2014 00:21:49 +0000 (19:21 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 9 Feb 2014 01:42:20 +0000 (20:42 -0500)
commit9822d510a68e01db4468db7629d4e7fb40e7abcc
tree6d314c96167be8bc7674f39d9d0dbbb6761a5f9c
parent552c29b488ecd7bcc3303dd5514ce6dbfff04437
GtkMenuButton: Support popovers

Add api to allow explicitly setting a GtkPopover instead of
a GtkMenu as the popup of a GtkMenuButton. Also, add api to
instruct the menu button to construct a popover when given
a menu model.

We set the style class "menu-button" on the button only when
it pops up a menu, to allow different treatment for the active
state of the button in the two cases.

https://bugzilla.gnome.org/show_bug.cgi?id=723878
docs/reference/gtk/gtk3-sections.txt
gtk/gtkmenubutton.c
gtk/gtkmenubutton.h